package com.sigmatrix.h5.enums;

public enum UserType {
	
	ADMIN(Short.valueOf("1"),"管理员"),
	
	SALES_MAN(Short.valueOf("2"),"业务员");
	
	public Short value;
	
	public String name;

	private UserType(Short value, String name) {
		this.value = value;
		this.name = name;
	}
	
	public static boolean isAdmin(Short userType){		
		if(UserType.ADMIN.value.equals(userType)){
			return true;
		}
		return false;
	}
	
}
